package ooday03;

public class Test {
    public static void main(String[] args) {
        Counter counter = new Counter(4, 5);

    }
}
class Counter extends Thread{
    private int first;
    private int last;

    public Counter(int first, int last) {
        this.first = first;
        this.last = last;
    }

    @Override
    public void run() {

            Pair p = new Pair();
            p.first = first;
            p.last = last;


    }


}
class Pair {
    int first;
    int last;

    @Override
    public String toString() {
        return "Pair{" +
                "first=" + first +
                ", last=" + last +
                '}';
    }
}

